package com.carltechnology.mahjonggamecaculation.dao;

import com.carltechnology.mahjonggamecaculation.mode.IGameData;
import com.carltechnology.mahjonggamecaculation.mode.IGameRuntimeData;

import rx.Subscriber;

/**
 * Created by WZTCM on 2016/6/28.
 */
public interface IMahjongGameModifyComponent {
    /**
     * modify maghjonggame table's data
     *
     * @param subscriber
     * @param mode
     */
    void modifyMahjongDataDate(Subscriber<? super IGameData> subscriber, IGameData mode);

    /**
     * modify mahjongRuntime data
     *
     * @param subscriber
     * @param mode
     */
    void modifyMahjongRuntimeData(Subscriber<? super IGameRuntimeData> subscriber, IGameRuntimeData mode);

    /**
     * clear runtime data
     *
     * @param subscriber
     */
    void clearRuntimeData(Subscriber<? super Boolean> subscriber);
}
